import random

# 猜数字赢金币
right_num = random.randint(1, 25)

for i in range(5):
    num = int(input('请输入一个1-25之间的数字'))
    if right_num > num:
        print(f'你猜的数字较小,剩余{4-i}次机会')
    elif right_num < num:
        print(f'你猜的数字较大，剩余{4-i}次机会')
    else:
        print('回答正确')
        break


